﻿<phone:PhoneApplicationPage 
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
	xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="728"
	x:Class="ontheroad.imgresultpage"
	FontFamily="{StaticResource PhoneFontFamilyNormal}"
	FontSize="{StaticResource PhoneFontSizeNormal}"
	Foreground="{StaticResource PhoneForegroundBrush}"
	Orientation="Portrait"
	shell:SystemTray.IsVisible="False">
	<phone:PhoneApplicationPage.ApplicationBar>
		<shell:ApplicationBar x:Name="imgresultappbar" ForegroundColor="White" BackgroundColor="{StaticResource PhoneAccentColor}" IsMenuEnabled="True" IsVisible="True">
			<shell:ApplicationBarIconButton x:Name="addtofavbut" Text="add favorite" IconUri="/icons/appbar.favs.addto.rest.white.png" Click="addtofavbut_Click"/>
			<shell:ApplicationBarIconButton x:Name="refreshBtn" IconUri="/icons/appbar.refresh.rest.png" Text="refresh" Click="refreshBtn_Click"/>
		</shell:ApplicationBar>
	</phone:PhoneApplicationPage.ApplicationBar>
	<Grid x:Name="LayoutRoot" Background="White">
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto"/>
			<RowDefinition Height="*"/>
		</Grid.RowDefinitions>
		
		<StackPanel x:Name="TitlePanel" Grid.Row="1" Margin="24,10,0,0" VerticalAlignment="Top">
			<StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
				<TextBlock x:Name="typetitletxt" TextWrapping="Wrap" Text="CCTV" VerticalAlignment="Center" FontFamily="Segoe WP Semibold" FontSize="21.333" Margin="0" HorizontalAlignment="Left" FontWeight="Bold">
					<TextBlock.Foreground>
						<SolidColorBrush Color="{StaticResource PhoneAccentColor}"/>
					</TextBlock.Foreground>
				</TextBlock>
			</StackPanel>
		</StackPanel>

		<!--ContentPanel - place additional content here-->
		<Grid x:Name="ContentPanel" Grid.Row="1" Margin="0,43,0,0">
			<StackPanel HorizontalAlignment="Left" Height="685" Margin="0" VerticalAlignment="Top" Width="480">
				<TextBlock x:Name="titletxt" TextWrapping="Wrap" Text="ถ.ศรีอยุธยา " Foreground="Black" Margin="24,20,8,0" FontFamily="/ontheroad;component/Fonts/Fonts.zip#TH SarabunPSK" FontSize="48" LineStackingStrategy="BlockLineHeight" LineHeight="37.333" FontWeight="Bold"/>
				<ListBox x:Name="imgresultlistbox" Height="605" Margin="0,20,0,0">
				</ListBox>
                
			</StackPanel>
		</Grid>
		<Grid x:Name="waitScr" Background="#CC000000" Margin="0" Grid.Row="1" d:IsHidden="True">
			<ProgressBar Height="30" VerticalAlignment="Center" IsIndeterminate="True" Margin="0"/>
		</Grid>
	</Grid>

	<!--LayoutRoot is the root grid where all page content is placed-->
</phone:PhoneApplicationPage>